import { TransitionPresets } from '@react-navigation/stack';

import HomeTabs from './HomeTabs';
import ShopChooseScreen from '../pages/ShopChooseScreen';
import MaintainOrderScreen from '../pages/MaintainOrderScreen';
import SignInContainer from '../containers/SignInContainer';
import FinancialStateScreen from '../pages/FinancialStateScreen';

const routes = [
  {
    name: 'SignIn',
    component: SignInContainer,
    options: {
      headerShown: false,
      ...TransitionPresets.DefaultTransition, // 如果需要 页面上下动画，设置这个属性
    },
  },
  {
    name: 'ShopChoose',
    component: ShopChooseScreen,
    options: {
      headerShown: false,
    },
  },
  {
    name: 'Home',
    component: HomeTabs,
    options: {
      title: '众达汽修',
      headerShown: false,
    },
  },
  {
    name: 'MaintainIndex',
    component: MaintainOrderScreen,
    options: {
      title: '维修开单',
    },
  },
  {
    name: 'FinancialState',
    component: FinancialStateScreen,
    options: {
      title: '财务报表',
    },
  },
];

export default routes;
